From 90a63294012a57ebd82c11d507cf4cb62d783117 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Sun, 19 Jul 2026 12:26:34 +0200 Subject: [PATCH] js: Adjust to proxy wrapper change Gio.DBus.makeProxyWrapper() now returns a Gio.DBusProxy subclass rather than a function (that returns a proxy object). That means it must now be invoked with `new`, so adjust the couple of places where we weren't doing that already. Part-of: (cherry picked from commit 7d8ff6b63ba908546e04d464cdd4681e125e5b12) --- js/gdm/authPrompt.js | 2 +- js/gdm/realmd.js | 6 +++--- js/misc/timeLimitsManager.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index c01c6fe2e..2c6c61627 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -37,7 +37,7 @@ class ParentalControlsShield extends St.BoxLayout { this._requestExtensionCookie = null; - this._timerChildProxy = TimerChildProxy(Gio.DBus.system, + this._timerChildProxy = new TimerChildProxy(Gio.DBus.system, 'org.freedesktop.MalcontentTimer1', '/org/freedesktop/MalcontentTimer1', (proxy, error) => { diff --git a/js/gdm/realmd.js b/js/gdm/realmd.js index f2faf4ab5..04400d7ca 100644 --- a/js/gdm/realmd.js +++ b/js/gdm/realmd.js @@ -16,7 +16,7 @@ export class Manager extends Signals.EventEmitter { constructor() { super(); - this._aggregateProvider = Provider(Gio.DBus.system, + this._aggregateProvider = new Provider(Gio.DBus.system, 'org.freedesktop.realmd', '/org/freedesktop/realmd', this._reloadRealms.bind(this)); @@ -38,7 +38,7 @@ export class Manager extends Signals.EventEmitter { return; for (let i = 0; i < realmPaths.length; i++) { - Realm(Gio.DBus.system, + new Realm(Gio.DBus.system, 'org.freedesktop.realmd', realmPaths[i], this._onRealmLoaded.bind(this)); @@ -98,7 +98,7 @@ export class Manager extends Signals.EventEmitter { } release() { - Service(Gio.DBus.system, + new Service(Gio.DBus.system, 'org.freedesktop.realmd', '/org/freedesktop/realmd', service => service.ReleaseAsync().catch(logError)); diff --git a/js/misc/timeLimitsManager.js b/js/misc/timeLimitsManager.js index f980477bc..8b10190ec 100644 --- a/js/misc/timeLimitsManager.js +++ b/js/misc/timeLimitsManager.js @@ -185,7 +185,7 @@ export const TimeLimitsManager = GObject.registerClass({ this._estimatedTimes = []; this._timerChildProxyFactory = timerChildProxyFactory ?? { new: () => { - return TimerChildProxy(Gio.DBus.system, + return new TimerChildProxy(Gio.DBus.system, 'org.freedesktop.MalcontentTimer1', '/org/freedesktop/MalcontentTimer1', (proxy, error) => { -- 2.39.5